package know_ioc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class PersonTest {
	public static void main(String[] args) {
//		ApplicationContext ac = new ClassPathXmlApplicationContext("beans.xml");
		ApplicationContext ac = new FileSystemXmlApplicationContext("src\\autowire.xml");
//		Person p = ac.getBean("p",Person.class);
//		
//		System.out.println(p);
		
		
		Man m = ac.getBean("man",Man.class);
		System.out.println(m);
	}
}
